From e501bc6028df13e8d8e7fd969fda689180c96b29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sun, 18 Jun 2017 10:13:11 +0200 Subject: [PATCH] paned: Draw handle separator at the right location --- gtk/gtkpaned.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index b9fa6445eb..463a8c8d3b 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1473,25 +1473,15 @@ gtk_paned_render_handle (GtkGizmo *gizmo, { GtkWidget *widget = GTK_WIDGET (gizmo); GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget)); - GtkAllocation content_alloc; - GtkAllocation widget_alloc; - int x, y; + int width, height; - gtk_widget_get_content_allocation (widget, &content_alloc); - gtk_widget_get_allocation (widget, &widget_alloc); - - x = content_alloc.x - widget_alloc.x; - y = content_alloc.y - widget_alloc.y; - - gtk_snapshot_offset (snapshot, x, y); + gtk_widget_get_content_size (widget, &width, &height); gtk_css_style_snapshot_icon (style, snapshot, - content_alloc.width, content_alloc.height, + width, height, GTK_CSS_IMAGE_BUILTIN_PANE_SEPARATOR); - gtk_snapshot_offset (snapshot, -x, -y); - return FALSE; } -- 2.30.2